import request from '@/utils/request'

// 查询出库信息列表
export function listExit(query) {
  return request({
    url: '/exitwarehouse/exit/list',
    method: 'get',
    params: query
  })
}

// 查询出库信息详细
export function getExit(exitWarehouseId) {
  return request({
    url: '/exitwarehouse/exit/' + exitWarehouseId,
    method: 'get'
  })
}

// 新增出库信息
export function addExit(data) {
  return request({
    url: '/exitwarehouse/exit',
    method: 'post',
    data: data
  })
}

// 修改出库信息
export function updateExit(data) {
  return request({
    url: '/exitwarehouse/exit',
    method: 'put',
    data: data
  })
}

// 删除出库信息
export function delExit(exitWarehouseId) {
  return request({
    url: '/exitwarehouse/exit/' + exitWarehouseId,
    method: 'delete'
  })
}
